#pragma once

#include "HashTable.h"

namespace my_space
{
	template<class K>
	class unordered_set
	{
	public:
		template <class K>
		struct setKeyOfT
		{
			const K& operator()(const K& key)
			{
				return key;
			}
		};

	public:
		bool insert(const K& key)
		{
			return _ht.Insert(key);
		}

	private:
		hashbucket::HashTable<K, K, setKeyOfT<K>> _ht;
	};

	void test_unordered_set1()
	{
		unordered_set<int> s1;
		s1.insert(1);
		s1.insert(2);
		s1.insert(3);
	}

}
